﻿using System.ComponentModel.DataAnnotations;
using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Models
{
    ///<summary>
    ///
    ///</summary>
    [Tenant("OUSB")]
    [SugarTable("EQUIPMENT_INFO","OUSB")]
    public class EquipmentInfo
    {
           public EquipmentInfo() { }

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>
           [Required(ErrorMessage = "Id type is required.")]
           [SugarColumn(IsPrimaryKey=true)]
           public int  Id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [Required(ErrorMessage = "Name type is required.")]
           [StringLength(100, ErrorMessage ="NAME长度100" )]
           public string Name {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [Required(ErrorMessage = "Status type is required.")]
           public int Status {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [Required(ErrorMessage = "Status type is required.")]
           [StringLength(30, ErrorMessage ="STATUS_DESC长度30" )]
           public string Status_Desc {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(100, ErrorMessage ="REMARK长度100" )]
           public string Remark {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? Create_Date {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? Modify_Date {get;set;}

    }
}
